<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

//主路由
Route::get('/','Index/index');

//用户模块
Route::resource('user','User');
Route::rule('user','User/save','POST');

//一对多用户喜爱书
Route::rule('user/:id/book','User/book');

Route::rule('login','User/login');
